package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.core.app.JobIntentService;

/**
 * @Author xdd
 * @Data 2023/11/3 13:57
 * 在Android 8.0 (API level 26)或以上使用
 */
public class MyJobIntentService extends JobIntentService {
    @Override
    protected void onHandleWork(@NonNull Intent intent) {
        String extras = intent.getStringExtra("key");
        System.out.println("xd======" + extras);
        long id = Thread.currentThread().getId();
        System.out.println("xd===Thread_ID=======" + id);

    }
}
